From 79432a8a6ceb1fa7c03e3f4f9d10e896c443154f Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Sun, 10 Sep 2023 18:01:46 -0600 Subject: [PATCH] fix noreturn booboos. (#1176) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * fix warning: function declared ‘noreturn’ has a ‘return’ statement * geez, another booboo using noreturn. --- jeeps/jgpsutil.cc | 1 - unicsv.cc | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jeeps/jgpsutil.cc b/jeeps/jgpsutil.cc index a462201af..68c5f926d 100644 --- a/jeeps/jgpsutil.cc +++ b/jeeps/jgpsutil.cc @@ -480,7 +480,6 @@ void GPS_Warning(const char* s) fprintf(stderr,"[FATAL] %s\n",s); exit(0); - return; } diff --git a/unicsv.cc b/unicsv.cc index fd4ee9839..372fd016d 100644 --- a/unicsv.cc +++ b/unicsv.cc @@ -1077,8 +1077,7 @@ UnicsvFormat::read() /* =========================================================================== */ -void -[[notreturn]] UnicsvFormat::unicsv_fatal_outside(const Waypoint* wpt) const +[[noreturn]] void UnicsvFormat::unicsv_fatal_outside(const Waypoint* wpt) const { *fout << "#####\n"; fatal(MYNAME ": %s (%s) is outside of convertible area of grid \"%s\"!\n", -- 2.30.2